package 装饰器模式;

public class DecoratorTest {

    public static void main(String[] args) {
        //最初只有 拍照功能
        装饰器模式.PhotoService photoService = new 装饰器模式.TakePhotoServiceImpl();
        photoService.operation();
        System.out.println("-------------------------------------");
        //加了美颜功能
        装饰器模式.PhotoService photoService1 = new 装饰器模式.BeautyPhotoImpl(photoService);
        photoService1.operation();
        System.out.println("-------------------------------------");
        // 加了录像功能
        装饰器模式.PhotoService photoService2 = new 装饰器模式.VedioImpl(photoService1);
        photoService2.operation();
    }
}
